package com.qf.springboot2203_02.dao;

import com.qf.springboot2203_02.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/*@Mapper
@Repository*/ //解决飘红线问题
public interface UserDao {
    List<User> getAll();
    User login(@Param("username") String username,@Param("password") String password);

    int insertRegist(User user);
}
